Skip to content

Conversation

@stephencompall-DA
Copy link
Contributor

@stephencompall-DA stephencompall-DA commented Jun 6, 2025

Fixes #895.

  • nix
  • dockerfiles
  • canton fork
  • local Scala
  • CI
  • preflight

Pull Request Checklist

Cluster Testing

  • If a cluster test is required, comment /cluster_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a hard-migration test is required (from the latest release), comment /hdm_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.

PR Guidelines

  • Include any change that might be observable by our partners or affect their deployment in the release notes.
  • Specify fixed issues with Fixes #n, and mention issues worked on using #n
  • Include a screenshot for frontend-related PRs - see README or use your favorite screenshot tool

Merge Guidelines

  • Make the git commit message look sensible when squash-merging on GitHub (most likely: just copy your PR description).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the project’s Java runtime from version 17 to 21 across Nix environments and Docker images, while adding a deprecation annotation and modernizing URI usage in tests.

  • Bump OpenJDK in Nix shell and overlays to version 21
  • Update Docker base images to Eclipse Temurin 21
  • Mark a deprecated MemoryMXBean method and switch from URL to URI in tests

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
nix/shell.nix Updated OpenJDK from 17 to 21
nix/overlays.nix Pointed jre overrides to OpenJDK 21
cluster/images/splice-app/Dockerfile Changed base image to eclipse-temurin:21
cluster/images/canton/Dockerfile Changed base image to eclipse-temurin:21
canton/.../MemoryCheck.scala Annotated deprecated getObjectPendingFinalizationCount
WalletAuth0FrontendIntegrationTest.scala Imported java.net.URI and converted to URL
AnsAuth0FrontendIntegrationTest.scala Imported java.net.URI and converted to URL
Comments suppressed due to low confidence (2)

cluster/images/splice-app/Dockerfile:40

  • Verify that the eclipse-temurin:21-jdk-noble tag exists. If it does not, update to a valid Eclipse Temurin 21 image (e.g., 21-jdk-jammy or 21-jdk).
FROM eclipse-temurin:21-jdk-noble

cluster/images/canton/Dockerfile:37

  • Ensure the eclipse-temurin:21-jdk-noble base image tag is valid. Consider using an officially supported tag such as 21-jdk-jammy or 21-jdk.
FROM eclipse-temurin:21-jdk-noble

Copy link
Contributor

@nicu-da nicu-da left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!
We probs want to add a release note for this as well!

Signed-off-by: Stephen Compall <stephen.compall@digitalasset.com>
- jammy will be removed for Java 22 releases; noble has been default for
  almost a year

Signed-off-by: Stephen Compall <stephen.compall@digitalasset.com>
Signed-off-by: Stephen Compall <stephen.compall@digitalasset.com>
Signed-off-by: Stephen Compall <stephen.compall@digitalasset.com>
Signed-off-by: Stephen Compall <stephen.compall@digitalasset.com>
@stephencompall-DA stephencompall-DA enabled auto-merge (squash) June 10, 2025 14:29
@stephencompall-DA stephencompall-DA merged commit 9568b07 into main Jun 10, 2025
60 checks passed
@stephencompall-DA stephencompall-DA deleted the s11/895-java-21 branch June 10, 2025 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

migrate to Java 21

3 participants